package test.test1202;

public class test02 {
    public static void main(String[] args) {
        int max = maxNum(80, 20);
        int max1 = maxNum(10, 20, 50);
        System.out.println(max);
        System.out.println(max1);
    }

    public static int maxNum(int a, int b) {
        return a > b ? a : b;
    }

    public static int maxNum(int a, int b, int c) {
        int max = a > b ? a : b;
        return max > c ? max : c;
    }
}
